package com.by.mapper;

import com.by.bean.Organize;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author HY
 * @version 1.0
 * @description
 * @date 2025/2/17
 * @since JDK21
 */
@Mapper
public interface OrganizeMapper {


    List<Organize> query();

    int save(Object entity);


    int update(Object entity);


    int delete(Serializable id);

    @MapKey("id")
    List<Map> queryByName(String name);

    List<Map> queryNameByID(int id);
}
